
import pytest
from autoTest_brtcApi.utils.mysqlUtil import mydb

@pytest.fixture(scope='session',autouse=True)
def fixture():
    print("开始执行接口测试自动化用例。。。。")
    yield
    print("用例执行完成，恢复环境。。。。")
    # 执行sql：delete from
    sql = 'delete from UserName WHERE u_phone= "119119119";'
    mydb.excute_sql(sql)
